package com.lsq.tomcat;

import javax.naming.ldap.SortKey;
import javax.servlet.http.HttpServletRequest;
import java.net.Socket;

/**
 * @author lsq
 * @description TODO
 * @date 2023/9/14
 */
public class Request extends AbstractHttpSercletRequst {
    private String url;
    private String protocol;
    private String method;

    private Socket socket;

    public Request(Socket socket, String url, String protocol, String method) {
        this.url = url;
        this.protocol = protocol;
        this.method = method;
        this.socket = socket;
    }

    public Socket getSocket() {
        return socket;
    }

    public StringBuffer getRequestURL() {
        return new StringBuffer(url);
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
}
